(function (cjs, an) {

var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [
		{name:"交互动画测试_atlas_1", frames: [[447,0,205,197],[654,0,252,105],[654,107,252,105],[0,0,445,410]]}
];


(lib.AnMovieClip = function(){
	this.actionFrames = [];
	this.ignorePause = false;
	this.gotoAndPlay = function(positionOrLabel){
		cjs.MovieClip.prototype.gotoAndPlay.call(this,positionOrLabel);
	}
	this.play = function(){
		cjs.MovieClip.prototype.play.call(this);
	}
	this.gotoAndStop = function(positionOrLabel){
		cjs.MovieClip.prototype.gotoAndStop.call(this,positionOrLabel);
	}
	this.stop = function(){
		cjs.MovieClip.prototype.stop.call(this);
	}
}).prototype = p = new cjs.MovieClip();
// symbols:



(lib.CachedBmp_3 = function() {
	this.initialize(ss["交互动画测试_atlas_1"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_2 = function() {
	this.initialize(ss["交互动画测试_atlas_1"]);
	this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();



(lib.CachedBmp_1 = function() {
	this.initialize(ss["交互动画测试_atlas_1"]);
	this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();



(lib.位图2 = function() {
	this.initialize(ss["交互动画测试_atlas_1"]);
	this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();



(lib.重播 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// 图层_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#000000").ss(1,1,1).p("AM+AAQAAC5jzCDQjzCDlYAAQlXAAjziDQjziDAAi5QAAi4DziDQDziDFXAAQFYAADzCDQDzCDAAC4g");
	this.shape.setTransform(83,44.65);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#CCFF00").s().p("ApKE8QjziDAAi5QAAi4DziDQDziDFXAAQFYAADzCDQDzCDAAC4QAAC5jzCDQjzCClYAAQlXAAjziCg");
	this.shape_1.setTransform(83,44.65);

	this.shape_2 = new cjs.Shape();
	this.shape_2.graphics.f("#CCE700").s().p("ApKE8QjziDAAi5QAAi4DziDQDziDFXAAQFYAADzCDQDzCDAAC4QAAC5jzCDQjzCClYAAQlXAAjziCg");
	this.shape_2.setTransform(83,44.65);

	this.shape_3 = new cjs.Shape();
	this.shape_3.graphics.f().s("#000000").ss(1,1,1).p("AM+AAQAAC5jzCDQjzCDlYAAQlXAAjziDQgcgQgZgQQi+h4AAikQAAijC+h5QAZgQAcgPQDziDFXAAQFYAADzCDQDzCDAAC4g");
	this.shape_3.setTransform(83,44.65);

	this.shape_4 = new cjs.Shape();
	this.shape_4.graphics.f("#CCE700").s().p("AmRDYQinhZAAh/QAAh+CnhZQCmhaDrAAQDsAACmBaQCnBZAAB+QAAB/inBZQimBajsAAQjrAAimhag");
	this.shape_4.setTransform(83.025,44.65);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).to({state:[{t:this.shape},{t:this.shape_2}]},1).to({state:[{t:this.shape_4},{t:this.shape_3}]},1).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-1,-1,168,91.3);


(lib.跳转按钮 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// 图层_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#000000").ss(1,1,1).p("APyAAQAADgkoCeQkoCfmiAAQmiAAkoifQknieAAjgQAAjfEnifQEoieGiAAQGiAAEoCeQEoCfAADfg");
	this.shape.setTransform(101,54.05);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#00FF00").s().p("ArKF+QknieAAjgQAAjfEnieQEoifGiAAQGjAAEnCfQEoCeAADfQAADgkoCeQknCfmjgBQmiABkoifg");
	this.shape_1.setTransform(101,54.05);

	this.shape_2 = new cjs.Shape();
	this.shape_2.graphics.f("#33CC00").s().p("AtyHYQlujDAAkVQAAkUFujEQFujDIEAAQIGAAFtDDQFuDEAAEUQAAEVluDDQltDEoGAAQoEAAlujEg");
	this.shape_2.setTransform(101.025,54.075);

	this.shape_3 = new cjs.Shape();
	this.shape_3.graphics.f().s("#000000").ss(1,1,1).p("AThAAQAAEVluDDQltDEoGAAQoEAAlujEQlujDAAkVQAAkUFujEQFujDIEAAQIGAAFtDDQFuDEAAEUg");
	this.shape_3.setTransform(101.025,54.075);

	this.shape_4 = new cjs.Shape();
	this.shape_4.graphics.f("#33F755").s().p("AtyHYQlujDAAkVQAAkUFujEQFujDIEAAQIGAAFtDDQFuDEAAEUQAAEVluDDQltDEoGAAQoEAAlujEg");
	this.shape_4.setTransform(101.0518,54.0661,0.6078,0.6078);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).to({state:[{t:this.shape_3},{t:this.shape_2}]},1).to({state:[{t:this.shape_3},{t:this.shape_4}]},1).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-24.8,-13.7,251.70000000000002,135.6);


(lib.补间1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// 图层_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#000000").ss(1,1,1).p("ArtnkIXbAAIAAPII3bAAg");
	this.shape.setTransform(0.025,0);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FF5345").s().p("ArtHlIAAvJIXbAAIAAPJg");
	this.shape_1.setTransform(0.025,0);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-76,-49.4,152.1,98.9);


(lib.元件1 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// 图层_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f().s("#000000").ss(1,1,1).p("AnkmAIPJAAIAAMBIvJAAg");
	this.shape.setTransform(48.5,38.5);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f("#FF5345").s().p("AnkGBIAAsBIPJAAIAAMBg");
	this.shape_1.setTransform(48.5,38.5);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-1,-1,99,79);


(lib.bofang = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	// 图层_1
	this.shape = new cjs.Shape();
	this.shape.graphics.f("#FF5345").s().p("AqGGOQkMilAAjpQAAjoEMilQEMilF6AAQF7AAEMClQEMClAADoQAADpkMClQkMCll7AAQl6AAkMilg");
	this.shape.setTransform(91.5,56.3);

	this.shape_1 = new cjs.Shape();
	this.shape_1.graphics.f().s("#000000").ss(1,1,1).p("AOTAAQAADpkMClQkMCll7AAQl6AAkMilQkMilAAjpQAAjoEMilQEMilF6AAQF7AAEMClQEMClAADog");
	this.shape_1.setTransform(91.5,56.3);

	this.shape_2 = new cjs.Shape();
	this.shape_2.graphics.f("#FF5345").s().p("Ar+HYQk+jDAAkVQAAkTE+jEQE+jDHAAAQHCAAE9DDQE+DEAAETQAAEVk+DDQk9DDnCAAQnAAAk+jDg");
	this.shape_2.setTransform(91.55,56.3);

	this.shape_3 = new cjs.Shape();
	this.shape_3.graphics.f("#FF5345").s().p("AnIEZQi9h0AAilQAAijC9h2QC9hzELgBQEMABC9BzQC9B2AACjQAACli9B0Qi9B1kMAAQkLAAi9h1g");
	this.shape_3.setTransform(91.575,56.35);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).to({state:[{t:this.shape_2}]},1).to({state:[{t:this.shape_3}]},1).wait(1));

	this._renderFirstFrame();

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-16.9,-10.4,217,133.5);


// stage content:
(lib.交互动画代码尝试 = function(mode,startPosition,loop,reversed) {
if (loop == null) { loop = true; }
if (reversed == null) { reversed = false; }
	var props = new Object();
	props.mode = mode;
	props.startPosition = startPosition;
	props.labels = {};
	props.loop = loop;
	props.reversed = reversed;
	cjs.MovieClip.apply(this,[props]);

	this.actionFrames = [23,95];
	// timeline functions:
	this.frame_23 = function() {
		/* Mouse Click 事件
		单击此指定的元件实例会执行您可在其中添加自己的自定义代码的函数。
		
		说明:
		1. 在以下"// 开始您的自定义代码"行后的新行上添加您的自定义代码。
		单击此元件实例时，此代码将执行。
		*/
		
		this.button_2.addEventListener("click", fl_MouseClickHandler_7.bind(this));
		
		function fl_MouseClickHandler_7()
		{
		this.gotoAndPlay(76);
		}
		this.stop();
	}
	this.frame_95 = function() {
		/* 单击以转到 Web 页
		单击指定的元件实例会在新浏览器窗口中加载 URL。
		
		说明:
		1. 用所需 URL 地址替换 http://www.adobe.com。
		   保留引号 ("")。
		*/
		
		this.tiaozhuananniu.addEventListener("click", fl_ClickToGoToWebPage);
		
		function fl_ClickToGoToWebPage() {
			window.open("http://www.baidu.com", "_blank");
		}
		
		
		
		/* 单击以转到帧并播放
		单击指定的元件实例会将播放头移动到时间轴中的指定帧并继续从该帧回放。
		可在主时间轴或影片剪辑时间轴上使用。
		
		说明:
		1. 单击元件实例时，用希望播放头移动到的帧编号替换以下代码中的数字 5。
		2. EaselJS 中的帧编号从 0 开始而不是从 1 开始
		*/
		
		this.button_chongbo.addEventListener("click", fl_ClickToGoToAndPlayFromFrame_4.bind(this));
		
		function fl_ClickToGoToAndPlayFromFrame_4()
		{
			this.gotoAndPlay(0);
		}
		this.stop();
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).wait(23).call(this.frame_23).wait(72).call(this.frame_95).wait(3));

	// 重播按钮
	this.instance = new lib.CachedBmp_2();
	this.instance.setTransform(753.45,401.85,0.5,0.5);

	this.instance_1 = new lib.CachedBmp_1();
	this.instance_1.setTransform(328.35,73.1,0.5,0.5);

	this.button_chongbo = new lib.重播();
	this.button_chongbo.name = "button_chongbo";
	this.button_chongbo.setTransform(198.9,100.9,1,1,0,0,0,83,44.6);
	new cjs.ButtonHelper(this.button_chongbo, 0, 1, 2);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.button_chongbo},{t:this.instance_1},{t:this.instance}]},95).wait(3));

	// 跳转按钮
	this.instance_2 = new lib.位图2();
	this.instance_2.setTransform(227,289);

	this.tiaozhuananniu = new lib.跳转按钮();
	this.tiaozhuananniu.name = "tiaozhuananniu";
	this.tiaozhuananniu.setTransform(797.7,534.7,1,1,0,0,0,101,54.1);
	new cjs.ButtonHelper(this.tiaozhuananniu, 0, 1, 2);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.tiaozhuananniu},{t:this.instance_2}]},95).wait(3));

	// 图层_4
	this.instance_3 = new lib.补间1("synched",0);
	this.instance_3.setTransform(1030.25,240.8);
	this.instance_3._off = true;

	this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(76).to({_off:false},0).to({y:521.05},19).to({_off:true},1).wait(2));

	// 图层_3
	this.instance_4 = new lib.CachedBmp_3();
	this.instance_4.setTransform(209.45,556.9,0.5,0.5);

	this.button_2 = new lib.bofang();
	this.button_2.name = "button_2";
	this.button_2.setTransform(254.1,484.65,1,1,0,0,0,91.5,56.3);
	new cjs.ButtonHelper(this.button_2, 0, 1, 2);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[]}).to({state:[{t:this.button_2},{t:this.instance_4}]},23).to({state:[]},53).wait(22));

	// 图层_1
	this.instance_5 = new lib.元件1("synched",0);
	this.instance_5.setTransform(227.55,257.45,1,1,0,0,0,48.5,38.5);

	this.timeline.addTween(cjs.Tween.get(this.instance_5).to({x:755.5},23).to({_off:true},1).wait(74));

	this._renderFirstFrame();

}).prototype = p = new lib.AnMovieClip();
p.nominalBounds = new cjs.Rectangle(754.9,415.3,351.4,283.7);
// library properties:
lib.properties = {
	id: '5D49F7DD0AED794A8107EA0A54E9EECA',
	width: 1280,
	height: 720,
	fps: 24,
	color: "#CCCCCC",
	opacity: 1.00,
	manifest: [
		{src:"交互动画测试_atlas_1.png", id:"交互动画测试_atlas_1"}
	],
	preloads: []
};



// bootstrap callback support:

(lib.Stage = function(canvas) {
	createjs.Stage.call(this, canvas);
}).prototype = p = new createjs.Stage();

p.setAutoPlay = function(autoPlay) {
	this.tickEnabled = autoPlay;
}
p.play = function() { this.tickEnabled = true; this.getChildAt(0).gotoAndPlay(this.getTimelinePosition()) }
p.stop = function(ms) { if(ms) this.seek(ms); this.tickEnabled = false; }
p.seek = function(ms) { this.tickEnabled = true; this.getChildAt(0).gotoAndStop(lib.properties.fps * ms / 1000); }
p.getDuration = function() { return this.getChildAt(0).totalFrames / lib.properties.fps * 1000; }

p.getTimelinePosition = function() { return this.getChildAt(0).currentFrame / lib.properties.fps * 1000; }

an.bootcompsLoaded = an.bootcompsLoaded || [];
if(!an.bootstrapListeners) {
	an.bootstrapListeners=[];
}

an.bootstrapCallback=function(fnCallback) {
	an.bootstrapListeners.push(fnCallback);
	if(an.bootcompsLoaded.length > 0) {
		for(var i=0; i<an.bootcompsLoaded.length; ++i) {
			fnCallback(an.bootcompsLoaded[i]);
		}
	}
};

an.compositions = an.compositions || {};
an.compositions['5D49F7DD0AED794A8107EA0A54E9EECA'] = {
	getStage: function() { return exportRoot.stage; },
	getLibrary: function() { return lib; },
	getSpriteSheet: function() { return ss; },
	getImages: function() { return img; }
};

an.compositionLoaded = function(id) {
	an.bootcompsLoaded.push(id);
	for(var j=0; j<an.bootstrapListeners.length; j++) {
		an.bootstrapListeners[j](id);
	}
}

an.getComposition = function(id) {
	return an.compositions[id];
}


an.makeResponsive = function(isResp, respDim, isScale, scaleType, domContainers) {		
	var lastW, lastH, lastS=1;		
	window.addEventListener('resize', resizeCanvas);		
	resizeCanvas();		
	function resizeCanvas() {			
		var w = lib.properties.width, h = lib.properties.height;			
		var iw = window.innerWidth, ih=window.innerHeight;			
		var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1;			
		if(isResp) {                
			if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {                    
				sRatio = lastS;                
			}				
			else if(!isScale) {					
				if(iw<w || ih<h)						
					sRatio = Math.min(xRatio, yRatio);				
			}				
			else if(scaleType==1) {					
				sRatio = Math.min(xRatio, yRatio);				
			}				
			else if(scaleType==2) {					
				sRatio = Math.max(xRatio, yRatio);				
			}			
		}
		domContainers[0].width = w * pRatio * sRatio;			
		domContainers[0].height = h * pRatio * sRatio;
		domContainers.forEach(function(container) {				
			container.style.width = w * sRatio + 'px';				
			container.style.height = h * sRatio + 'px';			
		});
		stage.scaleX = pRatio*sRatio;			
		stage.scaleY = pRatio*sRatio;
		lastW = iw; lastH = ih; lastS = sRatio;            
		stage.tickOnUpdate = false;            
		stage.update();            
		stage.tickOnUpdate = true;		
	}
}
an.handleSoundStreamOnTick = function(event) {
	if(!event.paused){
		var stageChild = stage.getChildAt(0);
		if(!stageChild.paused || stageChild.ignorePause){
			stageChild.syncStreamSounds();
		}
	}
}
an.handleFilterCache = function(event) {
	if(!event.paused){
		var target = event.target;
		if(target){
			if(target.filterCacheList){
				for(var index = 0; index < target.filterCacheList.length ; index++){
					var cacheInst = target.filterCacheList[index];
					if((cacheInst.startFrame <= target.currentFrame) && (target.currentFrame <= cacheInst.endFrame)){
						cacheInst.instance.cache(cacheInst.x, cacheInst.y, cacheInst.w, cacheInst.h);
					}
				}
			}
		}
	}
}


})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
var createjs, AdobeAn;